<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>资源列表</title>
    <bootstrapcss />
</head>
<body>
<table class="table table-bordered table-striped table-hover table-condensed">
    <thead>
    <tr>
        <th width="3%">id</th>
        <th width="9%">所属种类</th>
        <th width="20%">标题</th>
        <th width="8%">作者</th>
        <th width="4%">显示</th>
        <th width="8%">操作</th>
    </tr>
    </thead>
    <foreach name="data" item="v">
        <tr>
            <td>{$v['ziyuan_id']}</td>
            <td>{$v['kind_name']}</td>
            <td>{$v['ziyuan_title']}</td>
            <td>{$v['ziyuan_user']}</td>

            <td>
                <if condition="$v['is_show'] eq 1">
                    ✔
                    <else />
                    ✘
                </if>
            </td>
            <td>
                <a href="{:U('Admin/Ziyuan/edit',array('ziyuan_id'=>$v['ziyuan_id']))}">修改</a> |
                <a href="javascript:if(confirm('确定要删除吗?')) location='{:U('Admin/Recycle/recycle',array('table_name'=>'ziyuan','id_name'=>'ziyuan_id','id_number'=>$v['ziyuan_id']))}'">删除</a>
            </td>
        </tr>
    </foreach>
</table>
<div style="text-align: center;">
    {$page}
</div>
<bootstrapjs />
</body>
</html>
